home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Graphics Studio: Home Publishing 99 / [Microsoft Graphics Studio] Home Publishing 99 (Blue) Disk 2.iso / mhp / template / ees3041.mta / ees3041.MTA
Text File  |  1998-08-10  |  60KB  |  2,047 lines

  1. MIME-Version: 1.0
  2. Content-Type: multipart/related;
  3.     boundary="----=_NextPart_000_0642_01BDBE5D.35C54A80";
  4.     type="multipart/alternative"
  5. X-MMEditor: 00.00.02.1994,MinSave
  6. X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
  7.  
  8. This is a multi-part message in MIME format.
  9.  
  10. ------=_NextPart_000_0642_01BDBE5D.35C54A80
  11. Content-Type: multipart/alternative;
  12.     boundary="----=_NextPart_001_0643_01BDBE5D.35C54A80"
  13.  
  14.  
  15. ------=_NextPart_001_0643_01BDBE5D.35C54A80
  16. Content-Type: text/plain;
  17.     charset="iso-8859-1"
  18. Content-Transfer-Encoding: 7bit
  19.  
  20.   Your text here.        
  21.  
  22.  
  23. ------=_NextPart_001_0643_01BDBE5D.35C54A80
  24. Content-Type: text/html;
  25.     charset="iso-8859-1"
  26. Content-Transfer-Encoding: quoted-printable
  27. Content-Location: 
  28.  
  29. <!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
  30. <HTML>
  31. <HEAD>
  32.  
  33. <META content=3D"text/html; charset=3Diso-8859-1" =
  34. http-equiv=3DContent-Type>
  35. <META content=3D"MMEditor Version 00.00.02.1994,MinSave" =
  36. name=3DGENERATOR>
  37. <STYLE id=3DDocStyleSheet>.PreCreateRule {
  38.     POSITION: absolute
  39. }
  40. .DocClientData {
  41.     LEFT: 0px; OVERFLOW: hidden; POSITION: absolute; TOP: 20px; VISIBILITY: =
  42. visible
  43. }
  44. .RuntimeScriptDiv {
  45.     LEFT: -3200px; POSITION: absolute; TOP: -3200px; VISIBILITY: hidden
  46. }
  47. .SoundElementsDiv {
  48.     LEFT: -3200px; POSITION: absolute; TOP: -3200px; VISIBILITY: hidden
  49. }
  50. .Sx1 {
  51.     HEIGHT: 801px; LEFT: 10px; OVERFLOW: hidden; POSITION: absolute; TOP: =
  52. 30px; VISIBILITY: hidden; WIDTH: 571px; Z-INDEX: 100
  53. }
  54. .PD2 {
  55.     BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: =
  56. 0px; HEIGHT: 800px; LEFT: 0px; POSITION: absolute; TOP: 0px; VISIBILITY: =
  57. inherit; WIDTH: 570px; Z-INDEX: 50
  58. }
  59. .Ix3 {
  60.     BACKGROUND-COLOR: #ffffff; BACKGROUND-IMAGE: =
  61. url(cid:016401bd955c$13e449e0$6e59389d@a-lingra.dns.microsoft.com); =
  62. BACKGROUND-REPEAT: repeat; BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; =
  63. BORDER-RIGHT: 0px; BORDER-TOP: 0px; LEFT: 0px; POSITION: absolute; TOP: =
  64. 0px; VISIBILITY: inherit; Z-INDEX: 51
  65. }
  66. .PT8 {
  67.     BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: =
  68. 0px; HEIGHT: 636px; LEFT: 109px; PADDING-BOTTOM: 9px; PADDING-LEFT: 9px; =
  69. PADDING-RIGHT: 9px; PADDING-TOP: 9px; POSITION: absolute; TOP: 15px; =
  70. VISIBILITY: visible; WIDTH: 429px; Z-INDEX: 100
  71. }
  72. DIV {
  73.     FONT-FAMILY: Times New Roman
  74. }
  75. </STYLE>
  76.  
  77. <STYLE id=3DFontStyleSheet>@font-face {
  78.     font-family: Poor Richard;
  79.     =
  80. src:url(cid:064001bdbe97$e211d300$ed5d389d@superwonker.dns.microsoft.com)=
  81. ;
  82. }
  83. </STYLE>
  84.  
  85. </HEAD>
  86. <BODY =
  87. background=3Dcid:016401bd955c$13e449e0$6e59389d@a-lingra.dns.microsoft.co=
  88. m=20
  89. bgColor=3D#c0c0c0 leftMargin=3D0 topMargin=3D0>
  90. <DIV class=3DPreCreateRule id=3DNavigationButtons style=3D"VISIBILITY: =
  91. hidden">
  92. <FORM name=3DNavigationButtonsForm><INPUT name=3DStart type=3Dbutton =
  93. value=3D"Play  >/Replay >"><INPUT name=3DBackward type=3Dbutton =
  94. value=3D"Back  <<"><INPUT name=3DForward type=3Dbutton value=3D"Forward  =
  95. >>"><INPUT name=3DWebpage type=3Dbutton value=3DAbout...><INPUT =
  96. name=3DSceneStatus type=3Dbutton value=3D" Loading... "></FORM></DIV>=20
  97. <DIV class=3DDocClientData id=3DDocClientData Themes =3D=20
  98. " <AR|ARS1| =
  99. <TT|TTa5|TTb0|TTc30803|TTd5|TTe0|TTf30814|TTg5|TTh0|TTi30816|>|>|"=20
  100. lclJ =3D null lclFrench =3D null lclZ =3D 1 lclEnglish =3D 1 skuOE =3D =
  101. null skuGWDelux =3D 1=20
  102. skuGW =3D null KeyWords =3D null OutputStyle =3D "long page for longer =
  103. messages"=20
  104. ProjectType =3D "multimedia greeting" AOPTable =3D=20
  105. " <AR|ARS1| <AP|APa{guid =
  106. {A3649D6E-5058-11CF-9E27-00AA00BBB8AF}}|APbGreetings Workshop|>|>|"=20
  107. GW_NextID =3D 21>
  108. <DIV class=3DSx1 id=3DSx1 PageEffect =3D=20
  109. " <PE| <TR|TRa16|TRb2|TRc0|TRd1|TRe2|>|PEa0|PEb8|>|" SoundPaths =3D=20
  110. " <AR|ARS1| <SN| =
  111. <CP|CPa4A00000030300000000000000C000000000000640000C1000000A384F4D45435E4=
  112. D4D4C5D41494E4C5C494542435130313E2D4944400FFFFDAED00000000000000000000000=
  113. 0000000000000000000000000230083006300260093009300560003004200260023005300=
  114. 4600330083009300460004001600D20026005600E600560087001300E2004600E6003700E=
  115. 200D600960036002700F6003700F60066004700E2003600F600|CPbX:\v3Contnt\clipme=
  116. d\sound\MID_v2\LIEBS101.mid|CPccid:01c601bd955d$a1c0b4a0$6e59389d@a-lingr=
  117. a.dns.microsoft.com|CPdLIEBS101.mid|>|SNa0|SNb0|SNc1|SNd0|SNe0|>|>|"=20
  118. PageName =3D PD2>
  119. <DIV class=3DPD2 id=3DPD2 NoBackground =3D 0 PolyPath =3D=20
  120. 1,6,0.286865,366.183,0,800,570,800,570,0,0.286865,0,0.286865,366.183,0,0,=
  121. =20
  122. ClipPathInfo =3D=20
  123. " =
  124. <CP|CPa8C00000030300000000000000C00000000000064000052000000A384F4D4540525=
  125. 54D4C5D41494E4C584D4052544942523C5A403037333832303E274946400FFFFDAED00000=
  126. 000000000000000000000000000000000000000000000C200000010000000A1000000B000=
  127. 000000000000B000000024F44545F4D4A302030787B30224F4255000E5001010C0008DA35=
  128. 356000000004240000002400000000024C00B2024C0053400002400000060003600100041=
  129. 008003BBB08E00410000000000000000000000000000000000|CPbX:\v3Contnt\clipmed=
  130. \mmclips\j730_739\j0073820.gif|CPccid:016401bd955c$13e449e0$6e59389d@a-li=
  131. ngra.dns.microsoft.com|CPdj0073820.gif|>|"=20
  132. CAGQueryIndx =3D 0><IMG class=3DIx3 id=3DIx3 name=3DIx3=20
  133. src=3D"cid:063a01bdbe97$e1c560b0$ed5d389d@superwonker.dns.microsoft.com">=
  134. </DIV>=20
  135. <DIV class=3DPT8 id=3DPT8 SoundPaths =3D " <AR|ARS0|>|" =
  136. TravelEffectOptions =3D=20
  137. " <TE|TEa0|TEb2|TEc0|TEd0|>|" EntranceEffect =3D=20
  138. " <EE| =
  139. <TR|TRa7|TRb4|TRc3|TRd1|TRe2|>|EEa1|EEb0|EEc0|EEd100|EEf0|EEg1|>|"=20
  140. ExitEffect =3D=20
  141. " <EE| =
  142. <TR|TRa0|TRb2|TRc2|TRd1|TRe2|>|EEa0|EEb0|EEc100|EEd0|EEf0|EEg0|>|"=20
  143. ButtonEvent =3D=20
  144. " <BE|BEa0|BEc| <CP|CPaNIL|CPb|CPc|CPd|>| <CP|CPaNIL|CPb|CPc|CPd|>| =
  145. <CP|CPaNIL|CPb|CPc|CPd|>|>|"><FONT=20
  146. color=3D#800000 face=3D"Poor Richard" size=3D6>Your text=20
  147. here.</FONT></DIV></DIV></DIV>  =20
  148. <DIV class=3DSoundElementsDiv id=3DSoundElementsDiv>  <BGSOUND =
  149. id=3DAW20 soundsrc=20
  150. =3D cid:01c601bd955d$a1c0b4a0$6e59389d@a-lingra.dns.microsoft.com> <IMG=20
  151. src=3D""></DIV> =20
  152. <DIV id=3DNavSoundElementsDiv> <EMBED hidden=3Dtrue id=3DAW20nav =
  153. name=3DAW20nav=20
  154. src=3Dcid:01c601bd955d$a1c0b4a0$6e59389d@a-lingra.dns.microsoft.com =
  155. autostart =3D no=20
  156. MASTERSOUND></DIV>
  157. <SCRIPT id=3DRuntimeScript language=3DJavaScript>
  158. if ( navigator.appVersion.substring(0,1) < 4 )
  159.  alert("Sorry but your Web browser needs to be updated. You must have at =
  160. least a version 4.0 browser to view this project.");
  161. if ( navigator.appName !=3D "Netscape" )                                            =09
  162. {                                                                                    =09
  163.     document.body.background =3D "";                                                =09
  164.     for ( var ii=3D0; ii<document.all.length; ii++ )                                    =09
  165.         if ((document.all.item(ii).id).indexOf("Sx") !=3D -1)                        =09
  166.             document.all.item(ii).style.filter=3D"revealTrans(duration=3D0, =
  167. transition=3D0)";        =09
  168. }                                                                                    =09
  169.  
  170. var    OBJ_SCENE        =3D 0;        =09
  171. var    OBJ_PLAYER        =3D 1;        =09
  172. var PLAYER_IMAGE    =3D 0;        =09
  173. var    PLAYER_TEXT        =3D 1;        =09
  174. var PLAYER_DRAW        =3D 2;        =09
  175. var    NAME_SCENE        =3D "S"        =09
  176. var    NAME_PLAYER        =3D "P"        =09
  177. var    PLAYER_NAME_IMAGE    =3D "I"    =09
  178. var    PLAYER_NAME_TEXT    =3D "T"
  179. var PLAYER_NAME_DRAW    =3D "D"
  180. var    IE_VISIBLE            =3D "visible";
  181. var    IE_HIDDEN            =3D "hidden";
  182. var    IE_INHERIT            =3D "inherit";
  183. var    NAV_VISIBLE            =3D "show";
  184. var    NAV_HIDDEN            =3D "hide";
  185. var    NAV_INHERIT            =3D "inherit";
  186. var    DEFAULT_TICK_RATE        =3D 100;    =09
  187. var DEFAULT_SCENE_DURATION    =3D 10000;=09
  188. var    DEFAULT_PLAYER_DELAY    =3D 0;    =09
  189. var    TMR_PROJ                =3D 0;    =09
  190. var    TMR_SCENE                =3D 1;    =09
  191. var    RR_NONE                    =3D 0;    =09
  192. var    RR_PAGE_BUTTONS            =3D 1;    =09
  193. var    RR_FULL_RUNTIME            =3D 2;    =09
  194. var    DUR_FOREVER                =3D -1;    =09
  195. var    DELAY_NONE                =3D 0;    =09
  196. var    DELAY_UNTIL_TRANSITION    =3D -1;    =09
  197. var    DELAY_UNTIL_TRIGGER        =3D -2;    =09
  198. var    DUR_UNTIL_DONE            =3D -1;    =09
  199. var TT_ALL_MOUSE_EVENTS    =3D 0;    =09
  200. var    TT_BUTTONDOWN            =3D 1;    =09
  201. var    TT_BUTTONUP                =3D 2;    =09
  202. var    TT_MOUSEOVER            =3D 3;    =09
  203. var    TT_MOUSEOUT                =3D 4;    =09
  204. var    TB_PAGE_TURNER            =3D -1;    =09
  205. var    TB_START_PLAYER            =3D -2;    =09
  206. var NULL_TRANSITION            =3D -1;
  207. var    TEXT_FLYIN                =3D 101;
  208. var TEXT_TYPEWRITER        =3D 102;
  209. var    FLYIN_TOP                =3D 0;
  210. var    FLYIN_BOTTOM            =3D 1;
  211. var    FLYIN_LEFT                =3D 2;
  212. var    FLYIN_RIGHT                =3D 3;
  213. var    FLYIN_ROTATE            =3D 4;
  214. var    FLYIN_BY_LETTER            =3D 1;
  215. var    FLYIN_BY_WORD            =3D 2;
  216. var    FLYIN_BY_LINE            =3D 3;
  217. var    FLYIN_PER_TICK =3D new Array (200, 160, 120, 80, 40);    =09
  218. var    TRANSITION_RATES =3D new Array(1,2,3,4,5);            =09
  219. var    PS_UNINITIALIZED    =3D 0;
  220. var PS_INITIALIZED        =3D 1;
  221. var    PS_RUNNING            =3D 2;
  222. var PS_PAUSED            =3D 3;
  223. var PS_COMPLETE            =3D 4;
  224. var    sceneArray        =3D new Array();=09
  225. var currentScene    =3D null;        =09
  226. var nScenes            =3D 0;        =09
  227. var stProjState =3D PS_UNINITIALIZED;=09
  228. var stButtons    =3D false;        =09
  229. var    stNoInput    =3D 0;            =09
  230. var strPause =3D new Array( "" );
  231. var strPlay =3D new Array( "" );
  232. var    formStatus =3D null;
  233. var    tickTimer        =3D null;        =09
  234. var sys            =3D navigator.appName;                                    =09
  235. var vers        =3D navigator.appVersion.substring(0,1);                    =09
  236. var os            =3D navigator.appVersion.indexOf("NT") >=3D 0 ? "NT" : "95";=09
  237. var    platform    =3D navigator.platform;                                    =09
  238. window.onload =3D PreSetup;
  239. window.onerror =3D Error;
  240. function Error()
  241. {
  242.     alert("There has been an unidentified error in this file's script. You =
  243. may be able to fix this problem by refreshing your browser.");
  244.     return true;
  245. }
  246. function Project( tickRate, startScene, stopScene, rtReq, autoStart, =
  247. delay, webpage )
  248. {
  249.     this.tickRate =3D tickRate;
  250.     this.startScene =3D startScene;
  251.     this.stopScene =3D stopScene;
  252.     this.rtReq =3D rtReq;
  253.     this.autoStart =3D autoStart;
  254.     this.delay =3D delay;
  255.     this.webpage =3D webpage;
  256. }
  257. function PreSetup()
  258. {
  259.     if ( (Project.delay !=3D null) && (Project.delay !=3D 0) )        =09
  260.     {
  261.         setTimeout( "Setup();", Project.delay*1000 );=20
  262.         return;
  263.     }
  264. =09
  265.     Setup();
  266. }
  267. function Setup()=20
  268. { =20
  269.     stNoInput++;                            =09
  270.     if ( vers < 4 ) return;                    =09
  271.     if ( sys =3D=3D "Netscape" )                =09
  272.     {
  273.         document.all =3D new Array;            =09
  274.         Extract(document);                    =09
  275.     =09
  276.         document.body =3D new Object;
  277.         document.body.clientWidth =3D window.innerWidth;
  278.         document.body.clientHeight =3D window.innerHeight;
  279.         document.body.scrollTop =3D window.pageXOffset;=20
  280.         document.body.scrollLeft =3D window.pageYOffset;
  281.     }
  282.     stButtons =3D SetupButtons();                =09
  283.     ProjectInitialize();                    =09
  284.     stNoInput--;                            =09
  285.     if ( (stButtons =3D=3D false) || (Project.autoStart =3D=3D true) )=09
  286.         Start();                                            =09
  287. }
  288. function ProjectInitialize()
  289. {
  290. =09
  291.     tickTimer =3D new Timer();
  292. =09
  293. =09
  294.     InitializeScenes();
  295. =09
  296.     tickTimer.StartTicking();                            =09
  297. =09
  298.     if ( Project.startScene =3D=3D null )        =09
  299.         Project.startScene =3D 0;                =09
  300.     stProjState =3D PS_INITIALIZED;            =09
  301. =09
  302. }
  303. function ProjectStart( startScene )
  304. {
  305.     stProjState =3D PS_RUNNING;
  306.     if ( startScene !=3D null )
  307.         ChangeScene( startScene );
  308.     else
  309.         ChangeScene( Project.startScene );
  310. }
  311. function ProjectComplete()
  312. {
  313.     if ( Project.rtReq =3D=3D RR_PAGE_BUTTONS )    =09
  314.         return;                                =09
  315.     ProjectShutdown();
  316.     StatusChange();                            =09
  317. }
  318. function ProjectShutdown()
  319. {
  320.     KillTimer();                                    =09
  321.     StopEverythingOnScenes( false );
  322.     currentScene =3D null;
  323.     stProjState =3D PS_COMPLETE;                        =09
  324. }
  325. function Extract( obj )
  326. {
  327. =09
  328. =09
  329.     for (var intLayer =3D 0; intLayer< obj.layers.length; intLayer++)=09
  330.     {
  331.         var el =3D obj.layers[intLayer];        =09
  332.         document.all[el.id] =3D new Object    =09
  333.         var newEl =3D document.all[el.id];    =09
  334.     =09
  335.         newEl.id =3D el.id;                            =09
  336.         newEl.style =3D new Object;                    =09
  337.         newEl.style.pixelTop =3D parseInt(el.top);
  338.         newEl.style.pixelLeft =3D parseInt(el.left);
  339.         if (null!=3Del.clip)=20
  340.         {
  341.             newEl.offsetWidth =3D el.clip.width;    =09
  342.             newEl.offsetHeight =3D el.clip.height
  343.         }
  344.     =09
  345.         if        ( el.visibility =3D=3D NAV_HIDDEN )
  346.             newEl.style.visibility =3D IE_HIDDEN;
  347.         else if ( el.visibility =3D=3D NAV_VISIBLE )
  348.             newEl.style.visibility =3D IE_VISIBLE;
  349.         else if    ( el.visibility =3D=3D NAV_INHERIT )
  350.             newEl.style.visibility =3D IE_INHERIT;
  351.         else
  352.             newEl.style.visibility =3D "";
  353.     =09
  354.         newEl.style.zIndex =3D el.zIndex;
  355.         newEl.style.backgroundColor =3D el.bgColor;
  356.         newEl.style.backgroundImage =3D "url("+el.background+")";
  357.         newEl.NSLayer =3D el;                        =09
  358.     =09
  359.     =09
  360.     =09
  361.         for (var intLoop =3D 0; intLoop< el.document.images.length; intLoop++)
  362.         {
  363.             var image =3D el.document.images[intLoop]    =09
  364.             var    imageName =3D image.name;                =09
  365.             if ( imageName =3D=3D null )                =09
  366.                 continue;                            =09
  367.         =09
  368.             document.all[imageName] =3D image;        =09
  369.             document.images[imageName] =3D image;        =09
  370.         }
  371.     =09
  372.         for (var intLoop =3D 0; intLoop< el.document.forms.length; intLoop++)=20
  373.         {
  374.             var form =3D el.document.forms[intLoop];    =09
  375.             var formName =3D form.name;                =09
  376.             if ( formName =3D=3D null )
  377.                 continue;
  378.             document.all[formName] =3D form;            =09
  379.             document.forms[formName] =3D form;        =09
  380.         =09
  381.             for ( var innerLoop =3D 0; innerLoop < form.elements.length; =
  382. innerLoop++)
  383.             {
  384.                 var element =3D form.elements[innerLoop]=09
  385.                 var elementName =3D element.name;
  386.                 if ( elementName =3D=3D null )            =09
  387.                     continue;
  388.                 document.all[elementName] =3D element;=09
  389.             }
  390.         }
  391.         if ( el.layers.length > 0 )                =09
  392.             Extract(el)                            =09
  393.     }
  394. }
  395. function Scene( duration )
  396. {
  397.     this.duration =3D duration;
  398. }
  399. function InitializeScenes()
  400. {
  401.     var objScene;                            =09
  402.     var sceneNumber =3D 0;                    =09
  403. =09
  404.     for ( sceneName in Scenes )
  405.     {
  406.         objScene =3D Scenes[sceneName];        =09
  407.         objScene.number =3D parseInt(sceneNumber);                =09
  408.         objScene.name =3D sceneName;                    =09
  409.         objScene.HTML =3D document.all[sceneName];    =09
  410.         SetVisibility( objScene.HTML, IE_HIDDEN );=09
  411.         if ( Project.rtReq =3D=3D RR_PAGE_BUTTONS )    =09
  412.             objScene.duration =3D DUR_FOREVER;
  413.         InitializePlayers( objScene );        =09
  414.     =09
  415.         if ( objScene.entryTrans =3D=3D null )
  416.         {
  417.             objScene.entryTrans =3D new Object();
  418.             objScene.entryTrans.type =3D NULL_TRANSITION;
  419.         }
  420.     =09
  421.         if ( objScene.Bhv !=3D null )
  422.             for ( var bhvIdx=3D0; (bhv=3DobjScene.Bhv[bhvIdx]) !=3D null; =
  423. bhvIdx++ )=09
  424.                 bhv.Initialize( objScene, bhv);
  425.         objScene.numBhv =3D bhvIdx;                                            =09
  426.         sceneArray[sceneNumber++] =3D objScene;=09
  427.     }
  428.     nScenes =3D sceneNumber;                    =09
  429. }
  430. function StopEverythingOnScenes( fPause )
  431. {
  432.     var objScene;                            =09
  433.     for ( sceneName in Scenes )
  434.     {
  435.         objScene =3D Scenes[sceneName];                    =09
  436.     =09
  437.     =09
  438.         if ( objScene.Bhv !=3D null )
  439.             for ( var bhvIdx=3D0; (bhv=3DobjScene.Bhv[bhvIdx]) !=3D null; =
  440. bhvIdx++ )=09
  441.                 bhv.StopEverything( bhv, fPause );
  442.         StopEverythingOnPlayers( objScene, fPause );        =09
  443.     }
  444.     return;
  445. }
  446. function ChangeScene( nextSceneNumber )
  447. {
  448.     var    previousScene =3D currentScene;                    =09
  449.     StopSceneTimers();                                    =09
  450.     currentScene =3D GetSceneFromNumber( nextSceneNumber );=09
  451.     currentScene.previousScene =3D previousScene;            =09
  452.     if ( currentScene.duration =3D=3D null )                =09
  453.         currentScene.duration =3D DEFAULT_SCENE_DURATION;    =09
  454. =09
  455.     if ( currentScene.Bhv !=3D null )
  456.         for ( var bhvIdx=3D0; bhvIdx<currentScene.numBhv; bhvIdx++ )=09
  457.         {
  458.             var bhv =3D currentScene.Bhv[bhvIdx]
  459.             if ( bhv =3D=3D null)                            =09
  460.                 continue;
  461.             var delay =3D bhv.delay
  462.             if        ( (delay =3D=3D null) || (delay =3D=3D DELAY_NONE) )=09
  463.                 bhv.Start( bhv );                                    =09
  464.             else if ( delay > 0 )                                =09
  465.                 StartOneShotTimer( bhv, bhv.delay, bhv.Start, TMR_SCENE );
  466.         }
  467.     StartScenePlayers( currentScene );                            =09
  468.     StartTransition( currentScene, currentScene.entryTrans, IE_VISIBLE, =
  469. SceneTransitionDone );=09
  470. =09
  471.     if ( currentScene.duration !=3D DUR_FOREVER )            =09
  472.         StartOneShotTimer( currentScene, currentScene.duration, SceneExit, =
  473. TMR_SCENE );
  474.     StatusChange();                                        =09
  475.     return;
  476. }
  477. function SceneTransitionDone( objScene )
  478. {
  479. =09
  480. =09
  481.     if ( currentScene.previousScene !=3D null )
  482.         SetVisibility( currentScene.previousScene.HTML, IE_HIDDEN );
  483. =09
  484.     if ( currentScene.Bhv !=3D null )
  485.         for ( bhvIdx=3D0; bhvIdx<currentScene.numBhv; bhvIdx++ )=09
  486.         {
  487.             var bhv =3D currentScene.Bhv[bhvIdx]
  488.             if ( bhv =3D=3D null)                            =09
  489.                 continue;
  490.             if ( bhv.delay =3D=3D DELAY_UNTIL_TRANSITION  )=09
  491.                 bhv.Start( bhv );                                =09
  492.         }
  493.     =09
  494.     StartScenePlayersAfterTransition( currentScene );=09
  495. }
  496. function SceneExit( thisScene, nextScene )
  497. {
  498.     var nextSceneNumber =3D nextScene =3D=3D null ? currentScene.number+1 : =
  499. nextScene.number;
  500.     var finalScene =3D (nextSceneNumber <=3D Project.stopScene) ? false : =
  501. true;
  502. =09
  503. =09
  504. =09
  505.     for ( playerName in currentScene.Players )
  506.     {
  507.         objPlayer =3D currentScene.Players[playerName];        =09
  508.         PlayerExitTransitionDone( objPlayer, finalScene );    =09
  509.     }
  510. =09
  511.     if ( currentScene.Bhv !=3D null )
  512.         for ( bhvIdx=3D0; bhvIdx<currentScene.numBhv; bhvIdx++ )=09
  513.         {
  514.             var bhv =3D currentScene.Bhv[bhvIdx]
  515.             if ( bhv =3D=3D null)                            =09
  516.                 continue;
  517.             if ( bhv.duration =3D=3D DUR_UNTIL_DONE  )        =09
  518.                 bhv.Stop( bhv );                        =09
  519.         }
  520. =09
  521. =09
  522.     if ( finalScene =3D=3D false )                    =09
  523.         ChangeScene( nextSceneNumber )            =09
  524.     else
  525.         ProjectComplete()                        =09
  526.     =09
  527. }
  528. function Player( delay, duration )
  529. {
  530.     this.delay =3D delay;
  531.     this.duration =3D duration;
  532. }
  533. function InitializePlayers( objScene )
  534. {
  535.     var objPlayer;                        =09
  536.     var    playerNumber =3D 0;                =09
  537.     for ( playerName in objScene.Players )
  538.     {
  539.         objPlayer =3D objScene.Players[playerName];        =09
  540.         objPlayer.number =3D playerNumber;                =09
  541.         objPlayer.name =3D playerName;                    =09
  542.         objPlayer.HTML =3D document.all[playerName];        =09
  543.         SetVisibility( objPlayer.HTML, IE_HIDDEN );        =09
  544.         objPlayer.position =3D new Position(objPlayer);    =09
  545.     =09
  546.         if ( objPlayer.delay =3D=3D null )                    =09
  547.             objPlayer.delay =3D DEFAULT_PLAYER_DELAY;        =09
  548.     =09
  549.     =09
  550.         if        ( objPlayer.entryTrans =3D=3D null )
  551.         {
  552.             objPlayer.entryTrans =3D new Object();
  553.             objPlayer.entryTrans.type =3D NULL_TRANSITION;
  554.         }=20
  555.     =09
  556.         else if ((objPlayer.entryTrans !=3D null) &&            =09
  557.             (GetPlayerTypeFromName(objPlayer.name) =3D=3D PLAYER_TEXT))
  558.         {
  559.             if ( (objPlayer.entryTrans.type =3D=3D TEXT_FLYIN) || =
  560. (objPlayer.entryTrans.type =3D=3D TEXT_TYPEWRITER) )
  561.                 if ( InitializeTextFlyin( objPlayer ) =3D=3D false )
  562.                     objPlayer.entryTrans.type =3D null;                            =09
  563.         }
  564.     =09
  565.         if ( objPlayer.exitTrans =3D=3D null )
  566.         {
  567.             objPlayer.exitTrans =3D new Object();
  568.             objPlayer.exitTrans.type =3D NULL_TRANSITION;
  569.         }
  570.     =09
  571.         if ( objPlayer.Bhv !=3D null )
  572.         {
  573.             for ( bhvIdx=3D0; (bhv=3DobjPlayer.Bhv[bhvIdx]) !=3D null; bhvIdx++ )    =
  574.  
  575.                 bhv.Initialize( objPlayer, bhv);
  576.             objPlayer.numBhv =3D bhvIdx;                                    =09
  577.         }
  578.         else
  579.             objPlayer.numBhv =3D 0;
  580.         playerNumber ++;                =09
  581.     }=09
  582. }
  583. function StopEverythingOnPlayers( objScene, fPause )
  584. {
  585.     var objPlayer;                        =09
  586.     for ( playerName in objScene.Players )
  587.     {
  588.         objPlayer =3D objScene.Players[playerName];        =09
  589.     =09
  590.     =09
  591.         if ( objPlayer.Bhv !=3D null )
  592.         {
  593.             for ( bhvIdx=3D0; (bhv=3DobjPlayer.Bhv[bhvIdx]) !=3D null; bhvIdx++ )    =
  594.  
  595.                 bhv.StopEverything( bhv, fPause );
  596.         }
  597.         DisableTrigger( objPlayer );                    =09
  598.     }=09
  599.     return;
  600. }
  601. function StartScenePlayers( objScene )
  602. {
  603. =09
  604.     for ( playerName in objScene.Players )
  605.     {
  606.         objPlayer =3D objScene.Players[playerName];        =09
  607.     =09
  608.     =09
  609.     =09
  610.         if        ( objPlayer.delay =3D=3D DELAY_NONE )        =09
  611.             StartPlayer( objPlayer )                    =09
  612.         else if ( objPlayer.delay    > 0 )                =09
  613.             StartOneShotTimer( objPlayer, objPlayer.delay, StartPlayer, =
  614. TMR_SCENE);
  615.     }
  616. }
  617. function StartScenePlayersAfterTransition( objScene )
  618. {
  619. =09
  620.     for ( playerName in objScene.Players )
  621.     {
  622.         objPlayer =3D objScene.Players[playerName];        =09
  623.         if ( objPlayer.delay =3D=3D DELAY_UNTIL_TRANSITION )=09
  624.             StartPlayer( objPlayer )                    =09
  625.     }
  626. }
  627. function StartPlayer( objPlayer )
  628. {
  629. =09
  630.     if ( objPlayer.Bhv !=3D null )
  631.         for ( bhvIdx=3D0; bhvIdx<objPlayer.numBhv; bhvIdx++ )=09
  632.         {
  633.             var bhv =3D objPlayer.Bhv[bhvIdx]
  634.             if ( bhv =3D=3D null)                            =09
  635.                 continue;
  636.             var delay =3D bhv.delay
  637.             if        ( (delay =3D=3D null) || (delay =3D=3D DELAY_NONE) )=09
  638.                 bhv.Start( bhv );                                =09
  639.             else if ( delay > 0 )                                =09
  640.                 StartOneShotTimer( bhv, bhv.delay, bhv.Start, TMR_SCENE );
  641.         }
  642. =09
  643.     StartTransition( objPlayer, objPlayer.entryTrans, IE_VISIBLE, =
  644. PlayerEntryTransitionDone );
  645. =09
  646. =09
  647.     if ( objPlayer.duration > 0 )
  648.         StartOneShotTimer( objPlayer, objPlayer.duration, PlayerExit, =
  649. TMR_SCENE );                                =09
  650. }
  651. function PlayerEntryTransitionDone( objPlayer )
  652. {
  653. =09
  654.     if ( objPlayer.Bhv !=3D null )
  655.         for ( bhvIdx=3D0; bhvIdx<objPlayer.numBhv; bhvIdx++ )=09
  656.         {
  657.             var bhv =3D objPlayer.Bhv[bhvIdx]
  658.             if ( bhv =3D=3D null)                            =09
  659.                 continue;
  660.             if ( bhv.delay =3D=3D DELAY_UNTIL_TRANSITION  )=09
  661.                 bhv.Start( bhv );                                =09
  662.         }
  663. =09
  664.     if ( objPlayer.Triggers !=3D null )
  665.         EnableTrigger( objPlayer );
  666. }
  667. function PlayerExit( objPlayer )
  668. {
  669. =09
  670.     StartTransition( objPlayer, objPlayer.exitTrans, IE_HIDDEN, =
  671. PlayerExitTransitionDone );
  672. }
  673. function PlayerExitTransitionDone( objPlayer, finalScene )
  674. {
  675. =09
  676.     if ( objPlayer.Bhv !=3D null )
  677.         for ( bhvIdx=3D0; bhvIdx<objPlayer.numBhv; bhvIdx++ )=09
  678.         {
  679.             var bhv =3D objPlayer.Bhv[bhvIdx]
  680.             if ( bhv =3D=3D null)                            =09
  681.                 continue;
  682.             if ( bhv.duration =3D=3D DUR_UNTIL_DONE  )        =09
  683.                 bhv.Stop( bhv );                        =09
  684.         }
  685. =09
  686.     if ( (finalScene =3D=3D null) || (finalScene =3D=3D false) )
  687.         SetVisibility( objPlayer.HTML, IE_HIDDEN );        =09
  688. =09
  689. =09
  690. =09
  691.     if ( (sys !=3D "Netscape") && (objPlayer.HTML.Preview !=3D null) )
  692.         SetVisibility( objPlayer.HTML, IE_VISIBLE );=20
  693.     return;
  694. }
  695. function Trigger( trigType, trigBhv, player, scene )
  696. {
  697.     this.triggerType =3D trigType;
  698.     this.triggerBhv =3D trigBhv;
  699.     this.player =3D player;
  700.     this.nextSceneNum =3D scene;
  701. }
  702. function EnableTrigger( objPlayer )
  703. {
  704.     if ( sys !=3D "Netscape" )                                =09
  705.     {
  706.         objPlayer.HTML.style.cursor=3D"hand";                    =09
  707.         for ( trx in objPlayer.Triggers )                    =09
  708.         {
  709.             var    trigger =3D objPlayer.Triggers[trx];            =09
  710.             if ( trigger.triggerType =3D=3D null )
  711.                 trigger.triggerType =3D 0;                    =09
  712.             var tt =3D trigger.triggerType;                    =09
  713.             if            ( tt =3D=3D TT_ALL_MOUSE_EVENTS )                            =09
  714.             {
  715.                 objPlayer.HTML.onmousedown =3D EventProcessor;
  716.                 objPlayer.HTML.onmouseup =3D EventProcessor;=09
  717.                 objPlayer.HTML.onmouseover =3D EventProcessor;    =09
  718.                 objPlayer.HTML.onmouseout =3D EventProcessor;
  719.             }
  720.             else if        ( tt =3D=3D TT_BUTTONDOWN )                =09
  721.                 objPlayer.HTML.onmousedown =3D EventProcessor;
  722.             else if        ( tt =3D=3D TT_BUTTONUP )        =09
  723.                 objPlayer.HTML.onmouseup =3D EventProcessor;
  724.             else if        ( tt =3D=3D TT_MOUSEOVER )        =09
  725.                 objPlayer.HTML.onmouseover =3D EventProcessor;
  726.             else if        ( tt =3D=3D TT_MOUSEOUT )        =09
  727.                 objPlayer.HTML.onmouseout =3D EventProcessor;
  728.         }
  729.     }
  730.     else                                        =09
  731.     {
  732.         for ( trx in objPlayer.Triggers )        =09
  733.         {
  734.             var    trigger =3D objPlayer.Triggers[trx];=09
  735.             if ( trigger.triggerType =3D=3D null )
  736.                 trigger.triggerType =3D 0;                    =09
  737.             var tt =3D trigger.triggerType;                    =09
  738.             if ( tt=3D=3D 0 )                                    =09
  739.             {
  740.                 objPlayer.HTML.NSLayer.captureEvents( Event.MOUSEUP | =
  741. Event.MOUSEDOWN | Event.MOUSEOVER | Event.MOUSEOUT );
  742.                 objPlayer.HTML.NSLayer.onMouseUp =3D EventProcessor;
  743.                 objPlayer.HTML.NSLayer.onMouseDown =3D EventProcessor;
  744.                 objPlayer.HTML.NSLayer.onMouseOver =3D EventProcessor;
  745.                 objPlayer.HTML.NSLayer.onMouseOut =3D EventProcessor;
  746.             }
  747.             else if    ( tt =3D=3D TT_BUTTONUP )
  748.             {
  749.                 objPlayer.HTML.NSLayer.captureEvents(Event.MOUSEUP);
  750.                 objPlayer.HTML.NSLayer.onMouseUp =3D EventProcessor;
  751.             }
  752.             else if ( tt =3D=3D TT_BUTTONDOWN )
  753.             {
  754.                 objPlayer.HTML.NSLayer.captureEvents(Event.MOUSEDOWN);
  755.                 objPlayer.HTML.NSLayer.onMouseDown =3D EventProcessor;
  756.             }
  757.         }
  758.     =09
  759.     }
  760. }
  761. function DisableTrigger( objPlayer )
  762. {
  763.     if ( sys !=3D "Netscape" )            =09
  764.     {
  765.         objPlayer.HTML.onmousedown =3D null;
  766.         objPlayer.HTML.onmouseup =3D null;=09
  767.         objPlayer.HTML.onmouseover =3D null;    =09
  768.         objPlayer.HTML.onmouseout =3D null;
  769.     }
  770.     else                                =09
  771.         objPlayer.HTML.NSLayer.releaseEvents(Event.MOUSEUP | Event.MOUSEDOWN | =
  772. Event.MOUSEOVER | Event.MOUSEOUT );
  773. }
  774. function EventProcessor( e )
  775. {
  776.     var trigger;                                =09
  777.     var    type;                                    =09
  778.     var    button;                                    =09
  779.     var    eventType;                                =09
  780.     var objPlayer;                                =09
  781.     if ( (objPlayer =3D GetPlayerFromName(this.id)) =3D=3D null)=09
  782.         return;
  783.     if ( sys !=3D "Netscape" )                    =09
  784.     {
  785.         type =3D event.type;
  786.         button =3D event.button;
  787.     }
  788.     else                                        =09
  789.     {
  790.         type =3D e.type;
  791.         button =3D e.which;
  792.     }
  793. =09
  794.     if (type =3D=3D "mousedown")
  795.     {
  796.         if ( button !=3D 1 )                    =09
  797.             return;
  798.         eventType =3D TT_BUTTONDOWN;
  799.         if ( sys =3D=3D "Netscape" )            =09
  800.         {
  801.             objPlayer.HTML.NSLayer.releaseEvents(Event.MOUSEDOWN);
  802.             objPlayer.HTML.NSLayer.captureEvents(Event.MOUSEDOWN);
  803.         }
  804.     }
  805.     else if (type =3D=3D "mouseup")
  806.     {
  807.         if ( button !=3D 1 )                    =09
  808.             return;
  809.         eventType =3D TT_BUTTONUP;
  810.         if ( sys =3D=3D "Netscape" )            =09
  811.         {
  812.             objPlayer.HTML.NSLayer.releaseEvents(Event.MOUSEUP);
  813.             objPlayer.HTML.NSLayer.captureEvents(Event.MOUSEUP);
  814.         }
  815.     }
  816.     else if (type =3D=3D "mouseover")
  817.     {
  818.         eventType =3D TT_MOUSEOVER;
  819.     }
  820.     else if (type =3D=3D "mouseout")
  821.     {
  822.         eventType =3D TT_MOUSEOUT;
  823.     }
  824.     var triggerArray =3D objPlayer.Triggers;        =09
  825.     var trigger;                                =09
  826. =09
  827.     for ( var trx=3D0; (trigger=3DtriggerArray[trx]) !=3D null; trx++ )
  828.     {
  829.         if ( (trigger.triggerType =3D=3D 0) || (trigger.triggerType =3D=3D =
  830. eventType) )
  831.         {
  832.         =09
  833.         =09
  834.         =09
  835.             if        ( trigger.triggerBhv =3D=3D TB_PAGE_TURNER )
  836.             {
  837.             =09
  838.             =09
  839.                 if ( (trigger.nextSceneNum =3D=3D null) || (trigger.nextSceneNum =
  840. =3D=3D "") )
  841.                     SceneExit( currentScene );
  842.                 else
  843.                 {
  844.                     if ( Scenes[trigger.nextSceneNum].number < currentScene.number )
  845.                     {
  846.                         for ( ii=3D0; ii<=3DcurrentScene.number; ii++ )
  847.                             InitializePlayers( sceneArray[ii] );
  848.                     }
  849.                     SceneExit( currentScene, Scenes[trigger.nextSceneNum] );
  850.                 }
  851.             }
  852.             else if    ( trigger.triggerBhv =3D=3D TB_START_PLAYER )
  853.                 StartPlayer( GetPlayerFromName( trigger.player ) );            =09
  854.             else=20
  855.             {
  856.             =09
  857.                 var objTrigPlayer =3D GetPlayerFromName( trigger.player );    =09
  858.                 var bhv =3D objTrigPlayer.Bhv[trigger.triggerBhv];            =09
  859.                 bhv.Trigger( bhv, eventType );                                =09
  860.             }  =09
  861.         }
  862.     }
  863.     return;=09
  864. }
  865. function Transition( type, rate, flyFrom, flySubtype )
  866. {
  867.     this.type =3D type;
  868.     this.rate =3D rate;
  869.     this.flyFrom =3D flyFrom;
  870.     this.flySubtype =3D flySubtype;
  871. }
  872. function StartTransition( transObj, trans, visibility, callback )
  873. {
  874.     var    playerType =3D GetObjectTypeFromName( transObj.name );    =09
  875. =09
  876. =09
  877. =09
  878.     if    ( ("Netscape" =3D=3D sys) ||=20
  879.         ( (playerType =3D=3D OBJ_PLAYER) && (trans.type =3D=3D =
  880. NULL_TRANSITION) ) )
  881.     {
  882.         SetVisibility( transObj.HTML, visibility );
  883.         callback( transObj );
  884.         return;
  885.     }
  886. =09
  887. =09
  888. =09
  889. =09
  890.     if ( ((trans.type =3D=3D TEXT_FLYIN) || (trans.type =3D=3D =
  891. TEXT_TYPEWRITER)) && (visibility =3D=3D IE_VISIBLE) )
  892.     {
  893.         StartTextFlyin( transObj );
  894.         return;
  895.     }
  896. =09
  897.     if ( platform !=3D "Win32" )
  898.     {
  899.         SetVisibility( transObj.HTML, visibility );
  900.         callback( transObj );
  901.         return;
  902.     }
  903.     =09
  904. =09
  905. =09
  906. =09
  907. =09
  908. =09
  909.     if ( trans.type =3D=3D NULL_TRANSITION )
  910.     {
  911.         transObj.HTML.style.filter =3D "revealTrans(duration=3D0, =
  912. transition=3D0)";
  913.     }
  914.     else    =09
  915.     {
  916.         duration =3D TRANSITION_RATES[trans.rate];
  917.         transObj.HTML.style.filter =3D "revealTrans(duration=3D" + duration + =
  918. ", transition=3D" + trans.type + ")";
  919.     }
  920.     stNoInput++;                                    =09
  921.     transObj.HTML.filters(0).Apply();                =09
  922. =09
  923.     SetVisibility( transObj.HTML, visibility );        =09
  924. =09
  925.     transObj.HTML.filters(0).Play()                    =09
  926.     transObj.HTML.onfilterchange =3D TransitionDoneEvent;=09
  927. }
  928. function TransitionDoneEvent( )
  929. {
  930.     var    type =3D GetObjectTypeFromName( event.srcElement.id );    =09
  931.     stNoInput--;                                                =09
  932.     if        ( type =3D=3D OBJ_SCENE )
  933.     {
  934.     =09
  935.         if ( (currentScene !=3D null) && (event.srcElement.id =3D=3D =
  936. currentScene.name) )
  937.             SceneTransitionDone();
  938.     }
  939.     else if    ( type =3D=3D OBJ_PLAYER )        =09
  940.     {
  941.         var objPlayer =3D GetPlayerFromName( event.srcElement.id );
  942.         if ( this.style.visibility =3D=3D IE_VISIBLE )                =09
  943.             PlayerEntryTransitionDone( objPlayer ); =20
  944.         else                                                    =09
  945.             PlayerExitTransitionDone( objPlayer, false );
  946.     }
  947.     return;
  948. }
  949. function InitializeTextFlyin( objPlayer )
  950. {
  951.     if ( sys =3D=3D "Netscape" )                                    =09
  952.         return false;
  953.     var    transition =3D objPlayer.entryTrans;                        =09
  954.     var    transUnits =3D transition.flySubtype;                        =09
  955.     var    movePerTick    =3D parseInt(FLYIN_PER_TICK[transition.rate]);=09
  956. =09
  957.     var    transDirection =3D (transition.type =3D=3D TEXT_FLYIN) ? =
  958. transition.flyFrom : FLYIN_TOP;    =09
  959.     =09
  960. =09
  961.     if ( stProjState =3D=3D PS_UNINITIALIZED )
  962.     {
  963.         var    textHTML    =3D objPlayer.HTML;                =09
  964.         var    oldInnerHTML    =3D textHTML.innerHTML;        =09
  965.         var    newInnerHTML    =3D "";                        =09
  966.     =09
  967.         transition.textOrder =3D new Array();                =09
  968.         textOrder =3D transition.textOrder;                =09
  969. =09
  970.     =09
  971.     =09
  972.     =09
  973.     =09
  974.         var flyinIdx =3D 0;                        =09
  975.         var    flyinBuffer =3D "";
  976.     =09
  977.     =09
  978.     =09
  979.         var spanStyle =3D (transition.type =3D=3D TEXT_FLYIN) ? " =
  980. style=3D'position:relative;visibility:hidden;'" : " =
  981. style=3D'visibility:hidden;'";
  982.         for ( var letterIdx=3D0; letterIdx<oldInnerHTML.length; )
  983.         {
  984.         =09
  985.             tempID =3D objPlayer.name+"_tempID"+flyinIdx.toString();
  986.             newInnerHTML +=3D "<span id=3D" + tempID + spanStyle + ">";
  987.             while ( letterIdx<oldInnerHTML.length )
  988.             {
  989.             =09
  990.             =09
  991.             =09
  992.                 if ( ( (charNext =3D oldInnerHTML.substring(letterIdx, letterIdx+1)) =
  993. =3D=3D "<") || (charNext =3D=3D "&") )    =09
  994.                 {
  995.                     if ( charNext =3D=3D "<" )                                                                =09
  996.                         endTagIdx =3D oldInnerHTML.indexOf( ">", letterIdx );=09
  997.                     else
  998.                         endTagIdx =3D oldInnerHTML.indexOf( ";", letterIdx );=09
  999.                     var tagString =3D oldInnerHTML.substring( letterIdx, ++endTagIdx );
  1000.                     newInnerHTML +=3D tagString;
  1001.                     letterIdx =3D endTagIdx;                                            =09
  1002.                 =09
  1003.                     if ( ((tagString =3D=3D "</P>") || (tagString =3D=3D "<BR>")) &&
  1004.                         (transUnits !=3D FLYIN_BY_LETTER)    )                                    =09
  1005.                         break;
  1006.                 }
  1007.             =09
  1008.                 else
  1009.                 {
  1010.                     thisChar =3D oldInnerHTML.substring( letterIdx, ++letterIdx );
  1011.                     newInnerHTML +=3D thisChar;
  1012.                     if        ( transUnits =3D=3D FLYIN_BY_LETTER )        =09
  1013.                         break;                                        =09
  1014.                     else if    ( (transUnits =3D=3D FLYIN_BY_WORD ) && thisChar =3D=3D " " =
  1015. )    =09
  1016.                         break;
  1017.                 }
  1018.             }
  1019.             newInnerHTML +=3D "</span>"
  1020.             textOrder[flyinIdx] =3D new Object();
  1021.             textOrder[flyinIdx].name =3D tempID;                                    =09
  1022.             flyinIdx++;                                                            =09
  1023.         }
  1024.     =09
  1025.         if ( flyinIdx =3D=3D 0 )
  1026.             return false;
  1027.     =09
  1028.         textHTML.innerHTML =3D newInnerHTML;
  1029.         transition.numUnits =3D flyinIdx;                        =09
  1030.     }
  1031. =09
  1032. =09
  1033. =09
  1034.     textOrder =3D transition.textOrder;
  1035.     var currentEl =3D document.all[textOrder[0].name];    =09
  1036.     var currentOffset =3D currentEl.offsetLeft;=09
  1037.     var previousEl, previousOffset;
  1038.     for ( var count=3D0; count<transition.numUnits; count++ )        =09
  1039.     {
  1040.         previousOffset =3D currentOffset;                            =09
  1041.         previousEl =3D currentEl;
  1042.         textElName =3D textOrder[count].name;                    =09
  1043.         currentEl =3D document.all[textElName];
  1044.         SetVisibility( currentEl, IE_HIDDEN );
  1045.         currentOffset =3D currentEl.offsetTop;
  1046.     =09
  1047.     =09
  1048.     =09
  1049.     =09
  1050.     =09
  1051.     =09
  1052.         if ( currentOffset !=3D previousOffset )                                =09
  1053.             if ( previousEl.innerHTML =3D=3D " " )                                    =09
  1054.                 previousEl.innerHTML =3D "<br>";
  1055.         if ( transDirection =3D=3D FLYIN_ROTATE )        =09
  1056.             direction =3D count % FLYIN_ROTATE;            =09
  1057.         else
  1058.             direction =3D transDirection;
  1059.     =09
  1060.         if        ( direction =3D=3D FLYIN_LEFT )
  1061.         {
  1062.             tempPos =3D -(currentEl.offsetParent.offsetLeft + =
  1063. currentEl.offsetParent.offsetWidth);
  1064.             currentEl.style.posLeft =3D tempPos;                    =09
  1065.             textOrder[count].dx =3D -movePerTick;                    =09
  1066.             textOrder[count].dy =3D 0;
  1067.             textOrder[count].iterations =3D tempPos / (-movePerTick);=09
  1068.         }
  1069.         else if ( direction =3D=3D FLYIN_RIGHT )
  1070.         {
  1071.             tempPos =3D objPlayer.HTML.parentElement.offsetWidth - =
  1072. currentEl.offsetParent.offsetLeft;
  1073.             currentEl.style.posLeft =3D tempPos;
  1074.             textOrder[count].dx =3D movePerTick;                    =09
  1075.             textOrder[count].dy =3D 0;
  1076.             textOrder[count].iterations =3D tempPos / movePerTick;=09
  1077.         }
  1078.         else if    ( direction =3D=3D FLYIN_TOP )
  1079.         {
  1080.             tempPos =3D -(currentEl.offsetParent.style.posTop + =
  1081. currentEl.offsetParent.offsetHeight);
  1082.             currentEl.style.posTop =3D tempPos;
  1083.             textOrder[count].dx =3D 0;
  1084.             textOrder[count].dy =3D (-movePerTick);                =09
  1085.             textOrder[count].iterations =3D tempPos / (-movePerTick);=09
  1086.         }
  1087.         else if ( direction =3D=3D FLYIN_BOTTOM )
  1088.         {
  1089.             tempPos =3D objPlayer.HTML.parentElement.offsetHeight - =
  1090. currentEl.offsetParent.style.posTop;
  1091.             currentEl.style.posTop =3D tempPos;
  1092.             textOrder[count].dx =3D 0;
  1093.             textOrder[count].dy =3D movePerTick;                    =09
  1094.             textOrder[count].iterations =3D tempPos / movePerTick;=09
  1095.         }
  1096.     }
  1097. =09
  1098.     transition.charIdx =3D 0;                            =09
  1099.     transition.moveIdx =3D 0;                            =09
  1100.     textElName =3D transition.textOrder[0].name;
  1101.     transition.currentEl =3D document.all[textElName];=09
  1102.     SetVisibility( transition.currentEl, IE_VISIBLE );
  1103.     return true;
  1104. }
  1105. function StartTextFlyin( objPlayer )
  1106. {
  1107. =09
  1108.     SetVisibility( objPlayer.HTML, IE_VISIBLE );
  1109.     StartAnimationTimer( objPlayer, TextFlyinTick );
  1110. }
  1111. function TextFlyinTick( objPlayer )
  1112. {
  1113.     var    transition =3D objPlayer.entryTrans;                    =09
  1114.     var    spanObj =3D transition.textOrder[transition.charIdx];    =09
  1115.     var textEl =3D transition.currentEl;                        =09
  1116. =09
  1117. =09
  1118.     if ( ++transition.moveIdx < spanObj.iterations)            =09
  1119.     {
  1120.         textEl.style.posTop -=3D spanObj.dy;                    =09
  1121.         textEl.style.posLeft -=3D spanObj.dx;
  1122.         return false;                                        =09
  1123.     }
  1124.     =09
  1125. =09
  1126.     textEl.style.posTop =3D 0;                                =09
  1127.     textEl.style.posLeft =3D 0;
  1128.     =09
  1129. =09
  1130.     if ( (charIdx =3D ++transition.charIdx) >=3D =
  1131. transition.textOrder.length )=09
  1132.     {
  1133.         PlayerEntryTransitionDone( objPlayer );                =09
  1134.         return true;                                        =09
  1135.     }
  1136.     else
  1137.     {
  1138.         transition.moveIdx =3D 0;                                =09
  1139.         textElName =3D transition.textOrder[charIdx].name;
  1140.         transition.currentEl =3D document.all[textElName];    =09
  1141.         transition.currentEl.style.visibility =3D IE_VISIBLE;    =09
  1142.         return false;                                        =09
  1143.     }                                                        =09
  1144. }
  1145. var    SND_DUR_SCENE            =3D -1;=09
  1146. var    SND_DUR_PROJECT            =3D 0;=09
  1147. var ST_WAV                    =3D 1;=09
  1148. var    ST_MID                    =3D 2;=09
  1149. var    NAV_EXT                    =3D "nav"=09
  1150. var MidiTag                    =3D null;=09
  1151. function Sound( delay, duration, loop, soundType, tagName, fileName )
  1152. {
  1153. =09
  1154.     this.Initialize =3D InitializeSound;
  1155.     this.Start =3D StartSound;
  1156.     this.Trigger =3D StartSound;
  1157.     this.Stop =3D StopSound;
  1158.     this.StopEverything =3D StopEverythingOnSounds;
  1159. =09
  1160.     this.delay =3D delay;
  1161.     this.duration =3D duration;
  1162.     this.loop =3D loop;
  1163.     this.tagName =3D tagName;
  1164.     this.fileName =3D fileName;
  1165.     this.soundType =3D soundType;
  1166. }
  1167. function InitializeSound( objParent, objSound )
  1168. {
  1169.     if ( sys =3D=3D "Netscape" )
  1170.     {
  1171.         objSound.navLoop =3D (objSound.loop =3D=3D -1) ? true : false;
  1172.         objSound.html =3D document[objSound.tagName+NAV_EXT];
  1173.         return;
  1174.     }
  1175.     objSound.objParent =3D objParent;                =09
  1176.     objSound.html =3D document.all[objSound.tagName];=09
  1177.     objSound.fileName =3D objSound.html.soundsrc;    =09
  1178. =09
  1179. =09
  1180.     if (objSound.soundType =3D=3D ST_MID )
  1181.     {
  1182.         if ( MidiTag =3D=3D null )                    =09
  1183.             MidiTag =3D objSound.html;            =09
  1184.         else
  1185.             objSound.html =3D MidiTag;            =09
  1186.     }        =09
  1187. }
  1188. function StartSound( objSound )
  1189. {
  1190.     if ( sys =3D=3D "Netscape" )                    =09
  1191.     {
  1192.         if ( objSound.html !=3D null )            =09
  1193.             objSound.html.play(objSound.navLoop);
  1194.         return;
  1195.     }
  1196.     objSound.html.src =3D objSound.fileName;        =09
  1197.     objSound.html.loop =3D objSound.loop;            =09
  1198.     if ( objSound.soundType =3D=3D ST_WAV )        =09
  1199.         objSound.html.volume =3D 0;                    =09
  1200.     if ( objSound.duration > 0 )
  1201.         StartOneShotTimer( objSound, objSound.duration, objSound.Stop, =
  1202. TMR_PROJ );
  1203. }
  1204. function StopSound( objSound, fPause )
  1205. {
  1206.     if ( sys =3D=3D "Netscape" )                    =09
  1207.     {
  1208.         if ( objSound.html !=3D null )            =09
  1209.             objSound.html.stop();
  1210.         return;
  1211.     }
  1212.     objSound.html.loop =3D 0;
  1213.     objSound.html.src =3D "";                            =09
  1214.     if ( objSound.soundType =3D=3D ST_WAV )
  1215.         objSound.html.volume =3D -10000;
  1216. }
  1217. function StopEverythingOnSounds( objSound )
  1218. {
  1219.     StopSound( objSound, true );
  1220.     if ( (sys !=3D "Netscape") && (os =3D=3D "NT") )                =09
  1221.         objSound.html.volume =3D -500;                        =09
  1222. }
  1223. var    SND_DUR_SCENE            =3D -1;=09
  1224. var    SND_DUR_PROJECT            =3D 0;=09
  1225. function Swapper( idle, hover, click )
  1226. {
  1227. =09
  1228.     this.Initialize =3D InitializeSwap;
  1229.     this.Start =3D StartSwap;
  1230.     this.Trigger =3D TriggerSwap;
  1231.     this.Stop =3D StopSwap;
  1232.     this.StopEverything =3D StopSwap;
  1233. =09
  1234.     this.idle =3D idle;
  1235.     this.hover =3D hover;
  1236.     this.click =3D click;
  1237. }
  1238. function InitializeSwap( objParent, objSwap )
  1239. {
  1240.     if ( stProjState !=3D PS_UNINITIALIZED )            =09
  1241.         return;
  1242. =09
  1243.     var    idle    =3D objSwap.idle;                        =09
  1244.     var    hover    =3D objSwap.hover;
  1245.     var    click    =3D objSwap.click;
  1246. =09
  1247. =09
  1248. =09
  1249. =09
  1250. =09
  1251. =09
  1252. =09
  1253.     if ( (hover !=3D null) && (hover !=3D "") && (document.all[hover].src =
  1254. !=3D null) )
  1255.     {
  1256.         SetVisibility( document.all[hover], IE_HIDDEN );
  1257.         objSwap.srcHover =3D document.all[hover].src;
  1258.         document.all[hover].src =3D "";
  1259.     }
  1260.     else
  1261.         objSwap.srcHover =3D document.all[idle].src;
  1262.     if ( (click !=3D null) && (click !=3D "") && (document.all[click].src =
  1263. !=3D null) )
  1264.     {
  1265.         SetVisibility( document.all[click], IE_HIDDEN );
  1266.         objSwap.srcClick =3D document.all[click].src;
  1267.         document.all[click].src =3D "";
  1268.     }
  1269.     else
  1270.         objSwap.srcClick =3D document.all[idle].src;
  1271. =09
  1272.     objSwap.srcIdle =3D document.all[idle].src;
  1273. }
  1274. function StartSwap( objSwap )
  1275. {
  1276. =09
  1277. }
  1278. function TriggerSwap( objSwap, eventType )
  1279. {
  1280.     if ( eventType =3D=3D TT_BUTTONDOWN )
  1281.         document.all[objSwap.idle].src =3D objSwap.srcClick;
  1282.     else if ( eventType =3D=3D TT_BUTTONUP )
  1283.         document.all[objSwap.idle].src =3D objSwap.srcHover;
  1284.     else if ( eventType =3D=3D TT_MOUSEOVER )
  1285.         document.all[objSwap.idle].src =3D objSwap.srcHover;
  1286.     else if ( eventType =3D=3D TT_MOUSEOUT )
  1287.         document.all[objSwap.idle].src =3D objSwap.srcIdle;
  1288.     return;
  1289. }
  1290. function StopSwap( objSwap, fPause )
  1291. {
  1292.     if ( fPause )                        =09
  1293.         return;
  1294. }
  1295. var    PATH_PER_TICK =3D new Array(50,40,30,20,10);    =09
  1296. var    PE_STOP        =3D 0;                            =09
  1297. var    PE_AGAIN    =3D 1;                            =09
  1298. var    PE_REV        =3D 2;                            =09
  1299. var    PE_EXIT        =3D 3;                            =09
  1300. var    PD_FWD        =3D 1;
  1301. var    PD_BACK        =3D -1;
  1302. function Point( x, y, rate )
  1303. {
  1304.     this.x =3D x;
  1305.     this.y =3D y;
  1306.     this.rate =3D rate;
  1307. }
  1308. function Paths( delay, edgeEffect )
  1309. {
  1310. =09
  1311.     this.Initialize =3D InitializePathAnimation;
  1312.     this.Start =3D StartPathAnimation;
  1313.     this.Trigger =3D StartPathAnimation;
  1314.     this.Stop =3D StopPathAnimation;
  1315.     this.StopEverything =3D StopPathAnimation;
  1316. =09
  1317.     this.delay =3D delay;
  1318.     this.edgeEffect =3D edgeEffect;
  1319. }
  1320. function InitializePathAnimation( objPlayer, path )
  1321. {
  1322.     var    segment;                                =09
  1323.     var pathIndex;
  1324.     var totalDistance;                            =09
  1325.     var    distanceX;                                =09
  1326.     var    distanceY;
  1327.     var dx;                                        =09
  1328.     var    dy;
  1329.     var travelTime;                                =09
  1330.     var    remX;                                    =09
  1331.     var    remY;
  1332. =09
  1333.     if ( stProjState !=3D PS_UNINITIALIZED )
  1334.     {
  1335.         objPlayer.position.SetPosition( path[0].x, path[0].y );
  1336.         return;
  1337.     }
  1338.     path.objPlayer =3D objPlayer;                    =09
  1339.     halfWidth =3D Math.floor(objPlayer.HTML.offsetWidth/2);    =09
  1340.     halfHeight =3D Math.floor(objPlayer.HTML.offsetHeight/2);
  1341. =09
  1342. =09
  1343.     path[0].x -=3D halfWidth;
  1344.     path[0].y -=3D halfHeight;
  1345.     objPlayer.position.SetPosition( path[0].x, path[0].y );
  1346.     for ( pathIndex=3D0; path[pathIndex+1] !=3D null; pathIndex++ )=09
  1347.     {
  1348.         px =3D parseInt(pathIndex);                =09
  1349.         segment =3D path[px];                        =09
  1350.     =09
  1351.     =09
  1352.     =09
  1353.         path[px+1].x -=3D halfWidth;
  1354.         path[px+1].y -=3D halfHeight;
  1355.     =09
  1356.         distanceX =3D path[px+1].x - segment.x;    =09
  1357.         distanceY =3D path[px+1].y - segment.y;    =09
  1358.     =09
  1359.         totalDistance =3D Math.sqrt( (distanceX*distanceX) + =
  1360. (distanceY*distanceY) );
  1361.     =09
  1362.     =09
  1363.         travelTime =3D Math.round(totalDistance / =
  1364. PATH_PER_TICK[segment.rate]);
  1365.     =09
  1366.     =09
  1367.         if ( distanceX > 0 )                        =09
  1368.             dx =3D Math.floor( distanceX / travelTime );=09
  1369.         else if ( distanceX < 0 )                    =09
  1370.             dx =3D Math.ceil( distanceX / travelTime );=09
  1371.         else
  1372.             dx =3D 0;
  1373.     =09
  1374.     =09
  1375.     =09
  1376.     =09
  1377.         remX =3D distanceX % travelTime;
  1378.     =09
  1379.         if ( distanceY > 0 )                        =09
  1380.             dy =3D Math.floor( distanceY / travelTime );
  1381.         else if ( distanceY < 0 )
  1382.             dy =3D Math.ceil( distanceY / travelTime );
  1383.         else
  1384.             dy =3D 0;
  1385.         remY =3D distanceY % travelTime;
  1386.         segment.number =3D px;                        =09
  1387.         segment.ticks =3D 0;
  1388.         segment.travelTime =3D travelTime;
  1389.         segment.dx =3D dx;
  1390.         segment.dy =3D dy;
  1391.         segment.remX =3D remX;
  1392.         segment.remY =3D remY;
  1393.     }
  1394.     path.numSegs =3D parseInt(pathIndex);                =09
  1395.     path.dir =3D PD_FWD;                                        =09
  1396.     return;
  1397. }
  1398. function StartPathAnimation( path )
  1399. {
  1400.     path.currentSegment =3D path[0];    =09
  1401.     path.currentSegment.ticks =3D 0;    =09
  1402.     path.cntSegs =3D 0;                                =09
  1403. =09
  1404. =09
  1405.     if ( path.dir =3D=3D PD_BACK )                            =09
  1406.     {
  1407.         for ( var ii=3D0; ii<path.numSegs; ii++ )            =09
  1408.         {
  1409.             path[ii].dx *=3D -1;
  1410.             path[ii].dy *=3D -1;
  1411.             path[ii].remX *=3D -1;
  1412.             path[ii].remY *=3D -1;
  1413.         }
  1414.         path.dir =3D PD_FWD;                                =09
  1415.     }
  1416.     StartAnimationTimer( path, PathAnimationTick );
  1417. }
  1418. function StopPathAnimation( path, fPause )
  1419. {
  1420.     return;
  1421. }
  1422. function PathAnimationTick( path )
  1423. {
  1424.     var    objPlayer =3D path.objPlayer;            =09
  1425.     var segment =3D path.currentSegment;        =09
  1426.     var    currentPosition =3D objPlayer.position;=09
  1427.     if ( ++segment.ticks <=3D segment.travelTime )    =09
  1428.     {
  1429.         newX =3D currentPosition.x + segment.dx;        =09
  1430.         if ( segment.ticks <=3D Math.abs(segment.remX) )=09
  1431.             segment.remX > 0 ? newX++ : newX--;
  1432.         newY =3D currentPosition.y + segment.dy;        =09
  1433.         if ( segment.ticks <=3D Math.abs(segment.remY) )=09
  1434.             segment.remY > 0 ? newY++ : newY--;
  1435.         currentPosition.SetPosition( newX, newY );=09
  1436.         return false;                            =09
  1437.     }
  1438. =09
  1439. =09
  1440.     if ( ++path.cntSegs < path.numSegs )
  1441.     {
  1442.     =09
  1443.         path.currentSegment =3D path[segment.number+path.dir];    =09
  1444.         path.currentSegment.ticks =3D 0;                            =09
  1445.             =09
  1446.         return false;
  1447.     }
  1448.     =09
  1449. =09
  1450.     if            ( path.edgeEffect =3D=3D PE_AGAIN )    =09
  1451.     {
  1452.     =09
  1453.         objPlayer.position.SetPosition( path[0].x, path[0].y );
  1454.     =09
  1455.         path.currentSegment =3D path[0];                =09
  1456.         path.currentSegment.ticks =3D 0;                =09
  1457.         path.cntSegs =3D 0;                            =09
  1458.         return false;                                =09
  1459.     }                        =09
  1460.     else if        ( path.edgeEffect =3D=3D PE_REV )        =09
  1461.     {
  1462.         path.dir *=3D -1;                                =09
  1463.     =09
  1464.         for ( var ii=3D0; ii<path.numSegs; ii++ )
  1465.         {
  1466.             path[ii].dx *=3D -1;
  1467.             path[ii].dy *=3D -1;
  1468.             path[ii].remX *=3D -1;
  1469.             path[ii].remY *=3D -1;
  1470.         }
  1471.         path.currentSegment.ticks =3D 0;                =09
  1472.         path.cntSegs =3D 0;                            =09
  1473.         return false;
  1474.     }
  1475.     else if        ( path.edgeEffect =3D=3D PE_EXIT )
  1476.     {
  1477.         PlayerExit( objPlayer );
  1478.         return true;
  1479.     }
  1480.     else
  1481.         return true;                                =09
  1482. }
  1483. var    GROW_PER_TICK =3D new Array(20,14,8,4,1);    =09
  1484. function Size( zoom, rate )
  1485. {
  1486.     this.zoom =3D zoom;
  1487.     this.rate =3D rate;
  1488. }
  1489. function Grows( delay )
  1490. {
  1491. =09
  1492.     this.Initialize =3D InitializeGrowAnimation;
  1493.     this.Start =3D StartGrowAnimation;
  1494.     this.Trigger =3D StartGrowAnimation;
  1495.     this.Stop =3D StopGrowAnimation;
  1496.     this.StopEverything =3D StopGrowAnimation;
  1497. =09
  1498.     this.delay =3D delay;
  1499. }
  1500. function InitializeGrowAnimation( objPlayer, grow )
  1501. {
  1502.     if ( sys =3D=3D "Netscape" )
  1503.         return;
  1504.     var    child =3D objPlayer.HTML.children[0];                    =09
  1505.     var playerType =3D GetPlayerTypeFromName( objPlayer.name );=09
  1506. =09
  1507. =09
  1508. =09
  1509.     if ( stProjState =3D=3D PS_UNINITIALIZED )
  1510.     {
  1511.         grow.realWidth =3D child.width;
  1512.         grow.realHeight =3D child.height;
  1513.     }
  1514.     if ( (playerType =3D=3D PLAYER_TEXT) || sys =3D=3D "Netscape" )=09
  1515.     {
  1516.         grow =3D null;                                        =09
  1517.         return;
  1518.     }
  1519.     grow.objPlayer =3D objPlayer;                                =09
  1520. =09
  1521.     grow.currentSegment =3D grow[0];                            =09
  1522.     grow.currentGrowth =3D grow.currentSegment.zoom;            =09
  1523. =09
  1524. =09
  1525. =09
  1526.     child.width *=3D (grow.currentSegment.zoom / 100);        =09
  1527.     child.height *=3D (grow.currentSegment.zoom / 100);
  1528. =09
  1529.     for ( var growIndex=3D0; grow[growIndex] !=3D null; growIndex++ )=09
  1530.     {
  1531.         gx =3D parseInt(growIndex);                =09
  1532.         segment =3D grow[gx];                        =09
  1533.         if ( grow[gx+1] =3D=3D null )                =09
  1534.         {
  1535.             grow.finalSegment =3D grow[gx-1];        =09
  1536.             break;                                =09
  1537.         }
  1538.     =09
  1539.         growth =3D grow[gx+1].zoom - segment.zoom;                =09
  1540.         if ( growth >=3D 0 )                                        =09
  1541.             growthFactor =3D GROW_PER_TICK[segment.rate];            =09
  1542.         else
  1543.             growthFactor =3D -(GROW_PER_TICK[segment.rate]);
  1544.     =09
  1545.         growthTicks =3D growth / growthFactor;        =09
  1546.     =09
  1547.         segment.number =3D gx;                        =09
  1548.         segment.growth =3D growth;
  1549.         segment.growthFactor =3D growthFactor;
  1550.         segment.growthTicks =3D growthTicks;
  1551.         segment.currentTicks =3D 0;
  1552.     }
  1553. }
  1554. function StartGrowAnimation( grow )
  1555. {=09
  1556.     if ( sys =3D=3D "Netscape" )
  1557.         return;
  1558.     grow.currentSegment =3D grow[0];                        =09
  1559.     grow.currentTicks =3D 0;
  1560.     StartAnimationTimer( grow, GrowAnimationTick );
  1561. }
  1562. function StopGrowAnimation( grow, fPause )
  1563. {
  1564.     return;
  1565. }
  1566. function GrowAnimationTick( grow )
  1567. {
  1568.     if ( sys =3D=3D "Netscape" )
  1569.         return true;                                    =09
  1570.     var    objPlayer =3D grow.objPlayer;                        =09
  1571.     var    child =3D objPlayer.HTML.children[0];                =09
  1572.     var segment =3D grow.currentSegment;                    =09
  1573.     grow.currentGrowth +=3D segment.growthFactor;            =09
  1574.     child.width =3D grow.realWidth*(grow.currentGrowth/100);=09
  1575.     child.height =3D grow.realHeight*(grow.currentGrowth/100);
  1576.     if ( ++grow.currentTicks <=3D segment.growthTicks )    =09
  1577.         return false;                                    =09
  1578.     if ( grow.currentSegment =3D=3D grow.finalSegment )        =09
  1579.         return true;                                    =09
  1580.     grow.currentSegment =3D grow[ segment.number+1 ];        =09
  1581.     grow.currentTicks =3D 0;
  1582.     return false;                                        =09
  1583. }
  1584. function Timer()
  1585. {
  1586.     if ( Project.tickRate =3D=3D null )        =09
  1587.         this.tickRate =3D DEFAULT_TICK_RATE;
  1588.     else
  1589.         this.tickRate =3D Project.tickRate;
  1590.     this.oneShots =3D new Array();
  1591.     this.animations =3D new Array();
  1592.     this.tickCounter =3D 0;                        =09
  1593.     this.ticksPerSecond =3D 1000 / (this.tickRate);=09
  1594.     this.timerID =3D null;
  1595.     this.StartTicking =3D StartTicking;            =09
  1596.     this.StopTicking =3D StopTicking;
  1597. =09
  1598. }
  1599. function StartTicking()
  1600. {
  1601.     if ( this.timerID =3D=3D null )
  1602.         this.timerID =3D setInterval( "TimerTick()", this.tickRate );
  1603. }
  1604. function StopTicking()
  1605. {
  1606.     if ( this.timerID !=3D null )
  1607.         clearInterval( this.timerID );
  1608.     this.timerID =3D null;
  1609. }
  1610. function TimerTick()
  1611. {
  1612.     var timerEvent;
  1613. =09
  1614.     for ( var ii=3D0; ii<tickTimer.animations.length; ii++ )    =09
  1615.     {
  1616.         if ( (timerEvent=3DtickTimer.animations[ii]) =3D=3D null )=09
  1617.             continue;                                        =09
  1618.         if ( timerEvent.callback( timerEvent.callbackObj ) =3D=3D true )=09
  1619.             tickTimer.animations[ii] =3D null;                =09
  1620.     }
  1621. =09
  1622.     if ( (++tickTimer.tickCounter % tickTimer.ticksPerSecond) =3D=3D 0 )=09
  1623.     {
  1624.     =09
  1625.         var length =3D tickTimer.oneShots.length;                =09
  1626.         for ( var ii=3D0; ii<length && (tickTimer!=3Dnull); ii++ )=09
  1627.         {
  1628.             if ( (timerEvent=3DtickTimer.oneShots[ii]) =3D=3D null )=09
  1629.                 continue;                                    =09
  1630.         =09
  1631.             if ( timerEvent.time <=3D tickTimer.tickCounter )    =09
  1632.             {
  1633.                 tickTimer.oneShots[ii] =3D null;                =09
  1634.                 timerEvent.callback( timerEvent.callbackObj );=09
  1635.             }
  1636.         }
  1637.     }
  1638.     return;
  1639. }
  1640. function StartOneShotTimer( obj, time, callback, type )
  1641. {
  1642.     var    timerIndex;                                =09
  1643.     var timerEvent =3D new Object();                =09
  1644. =09
  1645.     timerEvent.callbackObj =3D obj;                =09
  1646.     timerEvent.callback =3D callback;                =09
  1647.     timerEvent.type =3D type;                        =09
  1648. =09
  1649. =09
  1650.     timerEvent.time =3D tickTimer.tickCounter + (time * =
  1651. tickTimer.ticksPerSecond);
  1652.     for ( timerIndex=3D0; tickTimer.oneShots[timerIndex]!=3Dnull; =
  1653. timerIndex++ );=09
  1654.     tickTimer.oneShots[timerIndex] =3D timerEvent;=09
  1655.     return;
  1656. }
  1657. function StartAnimationTimer( obj, callback )
  1658. {
  1659.     var timerIndex;=20
  1660.     timerEvent =3D new Object();
  1661.     timerEvent.callbackObj =3D obj;                =09
  1662.     timerEvent.callback =3D callback;                =09
  1663.     for ( timerIndex=3D0; tickTimer.animations[timerIndex]!=3Dnull; =
  1664. timerIndex++);=09
  1665.     tickTimer.animations[timerIndex] =3D timerEvent;
  1666. }
  1667. function StopSceneTimers()
  1668. {
  1669.     for (var ii=3D0; ii<tickTimer.oneShots.length; ii++)=09
  1670.     {
  1671.         if ( tickTimer.oneShots[ii] =3D=3D null )        =09
  1672.             continue;
  1673.         if ( tickTimer.oneShots[ii].type =3D=3D TMR_SCENE )
  1674.             tickTimer.oneShots[ii] =3D null;            =09
  1675.     }
  1676. =09
  1677.     for (var ii=3D0; ii<tickTimer.animations.length; ii++)
  1678.         tickTimer.animations[ii] =3D null;
  1679. }
  1680. =09
  1681. function KillTimer()
  1682. {
  1683.     if ( tickTimer !=3D null )                    =09
  1684.     {
  1685.         window.clearTimeout( tickTimer.timerID);=09
  1686.         tickTimer =3D null;                        =09
  1687.     }
  1688. }
  1689. function SetColor(el, color)=20
  1690. {
  1691.     if ( el.style =3D=3D null )                =09
  1692.         return;
  1693. =09
  1694.     el.style.backgroundColor =3D color;    =09
  1695.     if ("Netscape"=3D=3Dsys)=20
  1696.         el.NSLayer.bgColor =3D color;        =09
  1697. }
  1698. function SetZIndex(el, zindex)=20
  1699. {
  1700.     if ( el.style =3D=3D null )                =09
  1701.         return;
  1702. =09
  1703.     el.style.zIndex =3D zindex;            =09
  1704.     if ("Netscape"=3D=3Dsys)=20
  1705.         el.NSLayer.zIndex =3D zindex        =09
  1706. }
  1707. function SetVisibility(el, val)=20
  1708. {
  1709.     if ( el.style =3D=3D null )                =09
  1710.         return;
  1711.     el.style.visibility =3D val;            =09
  1712.        =20
  1713.     if ( "Netscape"=3D=3Dsys )                =09
  1714.     {
  1715.         if        ( val =3D=3D IE_HIDDEN )
  1716.             el.NSLayer.visibility =3D NAV_HIDDEN;
  1717.         else if ( val =3D=3D IE_VISIBLE )
  1718.             el.NSLayer.visibility =3D NAV_VISIBLE;
  1719.         else if ( val =3D=3D IE_INHERIT )
  1720.             el.NSLayer.visibility =3D NAV_INHERIT;
  1721.         else
  1722.             el.NSLayer.visibility =3D "";
  1723.     }
  1724. }
  1725. function Position( obj )
  1726. {
  1727.     this.object =3D obj;                        =09
  1728.     this.x =3D obj.HTML.style.pixelLeft;        =09
  1729.     this.y =3D obj.HTML.style.pixelTop;        =09
  1730.     this.SetPosition =3D SetPosition;
  1731. }
  1732. function SetPosition( newX, newY )=20
  1733. {
  1734.     var el =3D this.object.HTML;                =09
  1735.     if ( el.style =3D=3D null )                    =09
  1736.         return;
  1737.                 =09
  1738.     el.style.pixelTop =3D newY;    =09
  1739.     el.style.pixelLeft =3D newX;
  1740.     this.x =3D newX;                            =09
  1741.     this.y =3D newY;
  1742.     if ( "Netscape"=3D=3Dsys )                    =09
  1743.     {
  1744.         el.NSLayer.top =3D parseInt( newY );
  1745.         el.NSLayer.left =3D parseInt( newX );
  1746.         el.offsetTop =3D el.NSLayer.top;
  1747.         el.offsetLeft =3D el.NSLayer.left;
  1748.     }
  1749. }
  1750. function SetContent(el, content)=20
  1751. {
  1752.     if ( el.style =3D=3D null )                    =09
  1753.         return;
  1754.     if ( "Netscape"=3D=3Dsys )                    =09
  1755.     {
  1756.         el.NSLayer.document.open();            =09
  1757.         el.NSLayer.document.write(content);    =09
  1758.         el.NSLayer.document.close();        =09
  1759.     }
  1760.     else                                    =09
  1761.         el.innerHTML=3Dcontent;
  1762. }
  1763. function SetupButtons()
  1764. {
  1765.     var rtn =3D false;                    =09
  1766.     if ( document.all.Pause !=3D null )
  1767.     {
  1768.         document.all.Pause.onclick =3D Pause;
  1769.         strPause =3D document.all.Pause.value.split( '/' );
  1770.         document.all.Pause.value =3D strPause[0];
  1771.     }
  1772.     if (document.all.Stop !=3D null )
  1773.         document.all.Stop.onclick =3D Stop;
  1774.     if ( document.all.Forward !=3D null )
  1775.         document.all.Forward.onclick =3D Forward;
  1776.     if ( document.all.Backward !=3D null )
  1777.         document.all.Backward.onclick =3D Backward;
  1778.     if ( document.all.Webpage !=3D null )
  1779.         document.all.Webpage.onclick =3D GotoWebpage;
  1780.     if ( document.all.SceneStatus !=3D null )
  1781.         formStatus =3D document.all.SceneStatus;
  1782.     if ( document.all.Start !=3D null )
  1783.     {
  1784.         document.all.Start.onclick =3D Start;
  1785.         strPlay =3D document.all.Start.value.split( '/' );
  1786.         document.all.Start.value =3D strPlay[0];
  1787.         rtn =3D true;
  1788.     }
  1789.     else
  1790.         rtn =3D false;
  1791.     if ( document.all.NavigationButtons !=3D null )
  1792.         SetVisibility( document.all.NavigationButtons, IE_VISIBLE );
  1793.     return rtn;
  1794. }
  1795. function Start()
  1796. {
  1797.     if ( stNoInput )                                    =09
  1798.         return;
  1799.     if ( stButtons =3D=3D true )                            =09
  1800.     {
  1801.         document.all.Start.value =3D strPlay[1];
  1802.         if ( document.all.Pause !=3D null )
  1803.         {
  1804.             document.all.Pause.value =3D strPause[0];
  1805.         }
  1806.     }
  1807.     if            ( (stProjState =3D=3D PS_RUNNING) || (stProjState =3D=3D =
  1808. PS_PAUSED) )=09
  1809.     {
  1810.         ProjectShutdown();
  1811.         ProjectInitialize();
  1812.     }
  1813.     else if        ( stProjState !=3D PS_INITIALIZED )    =09
  1814.         ProjectInitialize();
  1815.     ProjectStart();                                    =09
  1816. }
  1817. function Pause()
  1818. {
  1819. =09
  1820.     if ( stProjState =3D=3D PS_PAUSED )                    =09
  1821.     {
  1822.         tickTimer.StartTicking();                    =09
  1823.         if ( document.all.Pause !=3D null )
  1824.         {
  1825.             document.all.Pause.value =3D strPause[0];
  1826.         }
  1827.         stProjState =3D PS_RUNNING;
  1828.         StatusChange();                                =09
  1829.     }
  1830.     else
  1831.     {
  1832.         if ( tickTimer !=3D null )                    =09
  1833.             tickTimer.StopTicking();                =09
  1834.         if    ( stProjState !=3D PS_RUNNING )            =09
  1835.             return;
  1836.         stProjState =3D PS_PAUSED;
  1837.         if ( document.all.Pause !=3D null )
  1838.         {
  1839.             document.all.Pause.value =3D strPause[1];
  1840.         }
  1841.         StopEverythingOnScenes( true );                =09
  1842.         StatusChange();                                =09
  1843.     }
  1844. }
  1845. function Stop()
  1846. {
  1847.     if ( stNoInput )                                    =09
  1848.         return;
  1849.     location.reload();
  1850. }
  1851. function Forward()
  1852. {
  1853.     if ( stNoInput )                                    =09
  1854.         return;
  1855. =09
  1856.     if ( stProjState !=3D PS_RUNNING )
  1857.         return;
  1858.     SceneExit( currentScene );                =09
  1859. }
  1860. function Backward()
  1861. {
  1862.     if ( stNoInput )                                    =09
  1863.         return;
  1864.     var nextScene;
  1865. =09
  1866. =09
  1867. =09
  1868.     if        ( stProjState =3D=3D PS_COMPLETE )
  1869.         nextScene =3D Project.stopScene;
  1870.     else if ( stProjState !=3D PS_RUNNING )
  1871.         return;
  1872.     else
  1873.         nextScene =3D (currentScene.number =3D=3D 0) ? 0 : currentScene.number =
  1874. - 1;
  1875.     ProjectShutdown();
  1876.     ProjectInitialize();
  1877.     ProjectStart( nextScene );            =09
  1878. }
  1879. function GotoWebpage()
  1880. {
  1881.     window.open( Project.webpage);                    =09
  1882. }
  1883. function StatusChange( )
  1884. {
  1885.     var        stsPage =3D null;                =09
  1886.     var        stsState =3D null;            =09
  1887.     if        ( stProjState =3D=3D PS_UNINITIALIZED )
  1888.     {
  1889.         stsState =3D "Initializing";
  1890.         stsPage =3D ""
  1891.     }
  1892.     else if ( stProjState =3D=3D PS_INITIALIZED )
  1893.     {
  1894.         stsState =3D "Ready";
  1895.         stsPage =3D "";
  1896.     }
  1897.     else if    ( stProjState =3D=3D PS_RUNNING )
  1898.     {
  1899.         stsState =3D "Playing";
  1900.         stsPage =3D (currentScene.number+1) + " / " + nScenes;
  1901.     }
  1902.     else if    ( stProjState =3D=3D PS_PAUSED )
  1903.         stsState =3D "Paused";
  1904.     else if    ( stProjState =3D=3D PS_COMPLETE )
  1905.         stsState =3D "Complete";
  1906. =09
  1907.     if ( (formStatus !=3D null) && (stsPage !=3D null) )
  1908.         formStatus.value =3D stsPage;
  1909. =09
  1910.     if ( stsState !=3D null )
  1911.         top.status =3D stsState;=20
  1912. }
  1913. function GetSceneFromNumber( sceneNum )
  1914. {
  1915.     return sceneArray[sceneNum];    =09
  1916. }
  1917. function GetPlayerFromName( playerName )
  1918. {
  1919.     var objPlayer;
  1920. =09
  1921. =09
  1922.     if ( (currentScene) && (currentScene.Players !=3Dnull) && ((objPlayer =
  1923. =3D currentScene.Players[playerName]) !=3D null) )                                                            =09
  1924.         return objPlayer;                    =09
  1925. =09
  1926.     var objScene;
  1927.     for ( sceneName in Scenes )                    =09
  1928.     {
  1929.         objScene =3D Scenes[sceneName];
  1930.         if ( objScene.Players !=3D null )
  1931.         {
  1932.             objPlayer =3D objScene.Players[playerName];
  1933.             if ( objPlayer !=3D null )
  1934.                 return objPlayer;                    =09
  1935.         }
  1936.     }=09
  1937.         =09
  1938.     return null;                                =09
  1939. }
  1940. function GetObjectTypeFromName( nameString )
  1941. {
  1942.     var type =3D nameString.substr(0,1);    =09
  1943.     if        ( type =3D=3D NAME_SCENE )        =09
  1944.         return OBJ_SCENE;
  1945.     else if    ( type =3D=3D NAME_PLAYER )        =09
  1946.         return OBJ_PLAYER;
  1947. }
  1948. function GetPlayerTypeFromName( nameString )
  1949. {
  1950.     var type =3D nameString.substr(1,1);    =09
  1951.     if        ( type =3D=3D PLAYER_NAME_IMAGE )    =09
  1952.         return PLAYER_IMAGE;
  1953.     else if    ( type =3D=3D PLAYER_NAME_DRAW )    =09
  1954.         return PLAYER_DRAW;
  1955.     else if    ( type =3D=3D PLAYER_NAME_TEXT )    =09
  1956.         return PLAYER_TEXT;
  1957. }
  1958. function resetGifAnimation()
  1959. {
  1960.     var temp =3D document.all["img1"].src;
  1961.     document.all["img1"].src =3D temp;
  1962. }
  1963. Project =3D new Project(50, 0, 0, 2, 1, 0, =
  1964. "http://home-publishing.com/SKU/V3Pub.asp");
  1965. Scenes =3D new Object();
  1966. Scenes.Sx1 =3D new Scene( 8 );
  1967. Scenes.Sx1.entryTrans =3D new Transition( 5, 2, 0, 0 );
  1968. Scenes.Sx1.Bhv =3D new Array();
  1969. Scenes.Sx1.Bhv[0] =3D new Sound( 0, -1, -1, 2, "AW20", =
  1970. "cid:01c601bd955d$a1c0b4a0$6e59389d@a-lingra.dns.microsoft.com" );
  1971. Scenes.Sx1.Players =3D new Object();
  1972. Scenes.Sx1.Players.PT8 =3D new Player( -1, -1 );
  1973. Scenes.Sx1.Players.PT8.entryTrans =3D new Transition( 12, 4, 0, 0 );
  1974.  
  1975. </SCRIPT>
  1976. </BODY></HTML>
  1977.  
  1978. ------=_NextPart_001_0643_01BDBE5D.35C54A80--
  1979.  
  1980. ------=_NextPart_000_0642_01BDBE5D.35C54A80
  1981. Content-Type: image/gif
  1982. Content-Transfer-Encoding: base64
  1983. Content-ID: <063a01bdbe97$e1c560b0$ed5d389d@superwonker.dns.microsoft.com>
  1984. X-Content-Source: C:\TEMP\IMGCC.GIF
  1985.  
  1986. R0lGODlhOwIhA/f/AP39/QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  1987. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  1988. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  1989. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  1990. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  1991. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  1992. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  1993. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  1994. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  1995. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  1996. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  1997. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  1998. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  1999. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP39/SH5BAEBAP8ALAAAAAA7AiED
  2000. QAiuAP8JHEiwoMGDCBMqXMiwocOHECNKnEixosWLGDNq3Mixo8ePIEOKHEmypMmTKFOqXMmypcuX
  2001. MGPKnEmzps2bOHPq3Mmzp8+fQIMKHUq0qNGjSJMqXcq0qdOnUKNKnUq1qtWrWLNq3cq1q9evYMOK
  2002. HUu2rNmzaNOqXcu2rdu3cOPKnUu3rt27ePPq3cu3r9+/gAMLHky4sOHDiBMrXsy4sePHkCNLnky5
  2003. suXLmDNrSN7MubPnz6BDix5NurTp06hTq17NurXr17Bjy55Nu7bt27hz697Nu7fv38CDCx9OvLjx
  2004. 48iTK1/OvLnz59CjS59Ovbr169izaznfzr279+/gw4sfT768+fPo06tfz769+/fw48ufT7++/fv4
  2005. 8+vfz7+///8ABijggAQWaOCBCCao4II0DDbo4IMQRijhhBRWaOGFGGao4YYcdujhhyCGKOKIJJZo
  2006. 4okopqjiiiy26OKLMMYo44w01i1o44045qjjjjz26OOPQAYp5JBEFmnkkUgmqeSSTDbp5JNQRinl
  2007. lFRWaeWVWGYpqeWWXHbp5ZdghinmmGSWaeaZaKap5ppstunmm3DGKeecdNZp55145qkn55589unn
  2008. n4AGKuighBZq6KGIJqrooow26uijkEYq6aSUVmrppZhmI6rpppx26umnoIYq6qiklmrqqaimquqq
  2009. rLbq6quwxirrrLTWImrrrbjmquuuvPbq66/ABivssMQWa+yxyCar7LLMNuvss9AfRivttNRWa+21
  2010. 2Gar7bbcduvtt+CGK+645JZr7rnoph6r7rrstuvuu/DGK++89NZr77345qvvvvz26++/AAccLPDA
  2011. BBds8MEIJ6zwwgw37PDDEEcs8cQUV2zxxRsYZ6zxxhx37PHHIIcs8sgkl2zyySinrPLKLLca7PLL
  2012. MMcs88w012zzzTjnrPPOPPfs889ABy0b9NBEF2300UgnrfTSTDft9NNQRy311FRXbfXVF1hnrfXW
  2013. XHft9ddghy322GSXbfbZaKetGfbabLft9ttwxy333HTXbffdeOet99589+0X99+ABy744IQXbvjh
  2014. iCeu+OKMN+7445AWRy755JRXbvnlmGeu+eacd+7556CHLhf66KSXbvrpqKeu+uqst+7667DHLvvs
  2015. tBXXbvvtuOeu++689+7778AHL/zwxBcUb/zxyCev/PLMN+/889BHL/301FcVb/312Gev/fbcd+/9
  2016. 9+CHL/745JdvFP756Kev/vrst+/++/DHL//89NdvFP/9+Oev//789+///wAMoAAHSMACFhrwgAhM
  2017. oAIXyMAGOvCBEIygBCdIwQoUWvCCGMygBjfIwQ568IMgDKEIR0gUwhKa8IQoTKEKV8jCFrrwhTCM
  2018. oQwUZ0jDGtrwhjjMoQ53yMMe+vCHQAwUohCHSMQiGvGISEyiEpfIxCY68YkTUIyiFKdIxSpa8YpY
  2019. zKIWt8jFLhN68YtgDKMYx0jGMprxjGhMoxrXE8jGNrrxjXCMoxznSMc62vGOeMwSox73yMc++vGP
  2020. gAykIAdJyEIaEvKQiEykIhfJyEY68pGQjKQkJxJJyUpa8pKYzKQmN8nJTnryk6ASDKUoR0nKUpry
  2021. lKhMpSpXycpWErrylbCMpSxnScta2vKWuMylLgV3GceAAAA7
  2022.  
  2023. ------=_NextPart_000_0642_01BDBE5D.35C54A80
  2024. Content-Type: audio/midi
  2025. Content-Transfer-Encoding: 7bit
  2026. Content-ID: <01c601bd955d$a1c0b4a0$6e59389d@a-lingra.dns.microsoft.com>
  2027. X-Content-Source: X:\v3Contnt\clipmed\sound\MID_v2\LIEBS101.mid
  2028. X-Global-Moniker: :HOMESNMM\MAIN\LIEBS101.MID
  2029.  
  2030.  
  2031. ------=_NextPart_000_0642_01BDBE5D.35C54A80
  2032. Content-Type: image/gif
  2033. Content-Transfer-Encoding: 7bit
  2034. Content-ID: <016401bd955c$13e449e0$6e59389d@a-lingra.dns.microsoft.com>
  2035. X-Content-Source: X:\v3Contnt\clipmed\mmclips\j730_739\j0073820.gif
  2036. X-Global-Moniker: :HOMEPREM\MAIN\HMPRDIR2\J0073820.GIF
  2037.  
  2038.  
  2039. ------=_NextPart_000_0642_01BDBE5D.35C54A80
  2040. Content-Type: application/x-font
  2041. Content-Transfer-Encoding: 7bit
  2042. Content-ID: <064001bdbe97$e211d300$ed5d389d@superwonker.dns.microsoft.com>
  2043. X-Content-Source: Poor Richard.eot
  2044.  
  2045.  
  2046. ------=_NextPart_000_0642_01BDBE5D.35C54A80--
  2047.